import request from '@/utils/request'

// fj/tunnel_light/getTunnelSection查询隧道区间
// fj/tunnel_light/getDeviceBySection查询设备列表
// fj/tunnel_light/getDeviceDetail查询设备详情

export function getTnnelSection(query) {
    return request({
      url: '/fj/tunnel_light/getTunnelSection',
      method: 'get',
      params: query
    })
  }

export function getDeviceBySection(query) {
    return request({
      url: '/fj/tunnel_light/getDeviceBySection',
      method: 'get',
      params: query
    })
  }

export function deviceDetails(query) {
    return request({
      url: '/fj/tunnel_light/getDeviceDetail',
      method: 'get',
      params: query
    })
  }

export function deviceControl(data){
  return request({
    url: '/fj/tunnel_light/total_control',
    method: 'post',
    data: data
  })
}
